<cfparam name = "dir" default="/photos/temp/">
<cfparam name = "uid" default="0">
<cfparam name = "iname" default="itemimg">
<cfparam name = "fname" default="productimage">
<cfparam name = "scriptfile" default="upload_dodimage.cfm">
<cfoutput>
<script type="text/javascript">
$(document).ready(function() {
  $('##file_upload').uploadify({
    'uploader'  : '#request.absolutepath#js/uploadify/uploadify.swf',
    'script'    : '#request.absoluteadminpath#upload/#scriptfile#?uid=#uid#&dir=#dir#',
    'cancelImg' : '#request.absolutepath#images/defaults/cancel.png',
    'folder'    : '#dir#',
    'auto'      : true,
	'multi'		: false,
	'buttonText' : 'Upload Image',
	'sizeLimit' : 183500800,
	'onComplete' : function(event, queueID, fileObj, response, data) {document.getElementById('#iname#').src='#dir#'+fileObj.name; document.getElementById('#fname#').value=fileObj.name;}
  });
});
</script>
</cfoutput>
<span style="padding-left: 8px;"><input id="file_upload" name="file_upload" type="file" /></span>